package com.weixing.mall.provider.model.vo.report.customer;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.provider.model.enums.OrderFromEnum;
import com.weixing.mall.provider.support.excel.EnumConverter.IsRepeatConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author jzy
 * @date 2020/5/15
 */
@Data
@ApiModel(value="CustomerUserReportVo", description="客服部-客户报表")
public class CustomerUserReportVo {
    @ApiModelProperty(value = "用户Id")
    @ExcelIgnore
    private Long buyerId;
    @ApiModelProperty(value = "下单来源 1客服下单，2代理商下单，3客户下单")
    @ExcelIgnore
    private OrderFromEnum orderFrom;
    @ApiModelProperty(value = "姓名")
    @ExcelProperty("姓名")
    private String contactUser;
    @ApiModelProperty(value = "手机号")
    @ExcelProperty("手机号")
    private String contactPhone;
    @ApiModelProperty(value = "身高")
    @ExcelProperty("身高")
    private Integer height;
    @ApiModelProperty(value = "体重")
    @ExcelProperty("体重")
    private BigDecimal weight;
    @ApiModelProperty(value = "购买数量")
    @ExcelProperty("购买数量")
    private Integer buyNum;
    @ApiModelProperty(value = "购买次数")
    @ExcelProperty("购买次数")
    private Integer buyTimes;
    @ApiModelProperty(value = "是否重复购买 0不是 1是")
    @ExcelProperty(value = "是否重复购买",converter = IsRepeatConverter.class)
    @ExcelIgnore
    private Integer isRepeat;

    @ApiModelProperty(value = "是否重复购买 0不是 1是")
    @ExcelProperty(value = "是否重复购买",converter = IsRepeatConverter.class)
    private Integer isRepeat2;
    @ApiModelProperty(value = "加入日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("加入日期")
    private Date joinTime;


}
